package com.gdkm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import com.gdkm.dao.DrugDao;
import com.gdkm.po.Drug;
import com.gdkm.service.DrugService;
@EnableTransactionManagement
@Service
public class DrugServiceImpl implements DrugService {
	@Autowired
    DrugDao dao;

	@Override
	public void save1(String drug_number, String drug_name, String specifications, String price) {
		// TODO Auto-generated method stub
		dao.save1(drug_number, drug_name, specifications, price);
	}

	@Override
	public List<Drug> list2(int y, int ge) {
		// TODO Auto-generated method stub
		return dao.list2(y, ge);
	}

	@Override
	public List<Drug> list3(String drug_number, String drug_name, int y, int ge) {
		// TODO Auto-generated method stub
		return dao.list3(drug_number, drug_name, y, ge);
	}

	@Override
	public void delete1(int id) {
		// TODO Auto-generated method stub
		dao.delete1(id);
	}

	@Override
	public void update(Drug stu) {
		// TODO Auto-generated method stub
		dao.update(stu);
	}

	
	
	

}
